import request from '@/utils/request'



//分页模糊查询
export const sendingList=(page,limit)=>{
    return request({
        url:`/admin/smssending/Sending/findSending/${page}/${limit}`,
        method:'get',

    })
}

export const findsending=()=>{
  return request({
      url:`/admin/smssending/Sending/findsending`,
      method:'get',

  })
}




// 添加
export const SaveSending = sending => {
    return request({
      url: `/admin/smssending/Sending/save`,
      method: 'post',
      data: sending,
    })
}

  // 修改
  export const UpdateSending = Sending => {
    return request({
        url: `/admin/smssending/Sending/UpdateSending`,
        method: 'put',
        data: Sending,
    })
  }

  //软删除
export const delSending = (id) => {
    return request({
        url:`/admin/smssending/Sending/delSending/${id}`,
        method: 'delete'
    })
}




  // //查询短信模板
  // export const findTemplate = () => {
  //   return request({
  //     url: `/admin/Template/Template/findTemplate`,
  //     method: 'get',
  //   })
  // }